package com.supermap.business.product;

import com.alibaba.dubbo.config.annotation.Reference;
import com.supermap.dubbo.api.product.ChinaProjectService;
import com.supermap.dubbo.api.product.PmsProductService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;
import java.util.Map;

/**
 * @author aqua
 * @description
 * @date 2018年11月08 下午 1:33
 * @email 1301584033@qq.com
 */
@Controller
@RequestMapping("/chinaProject")
public class ChinaProjectController {
    @Reference(timeout = 10000)
    ChinaProjectService chinaProjectService;
    /***
     *
     *统计所有省市上传的产品数
     * return List<Map<String,Object>>
     * */
    @GetMapping("/getnewDateAllProductCount")
    @ResponseBody
    public List<Map<String,Object>> getnewDateAllProductCount(){
        return  chinaProjectService.getnewDateAllProductCount();
    }

}
